﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="MacDetay.ascx.cs" Inherits="HPDMAS.UserControls.MacDetay" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:DetailsView ID="DetailsView_MacDetay" runat="server" AutoGenerateRows="false"
    ViewStateMode="Disabled" DataKeyNames="MacID" Width="400px" OnDataBound="DetailsView_MacDetay_DataBound"
    OnModeChanging="DetailsView_MacDetay_ModeChanging" CellPadding="3" CellSpacing="3"
    OnItemUpdating="DetailsView_MacDetay_ItemUpdating">
    <Fields>
        <asp:TemplateField HeaderText="Maç Detayı" HeaderStyle-Font-Bold="true">
            <ItemTemplate>
                <tr>
                    <td align="right">
                        <b>İlçe</b>
                    </td>
                    <td>
                        :
                    </td>
                    <td>
                        <%# Eval("Ilce.IlceAdi") %>
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <b>Stad</b>
                    </td>
                    <td>
                        :
                    </td>
                    <td>
                        <%# Eval("Stat.StatAdi") %>
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <b>Devre</b>
                    </td>
                    <td>
                        :
                    </td>
                    <td>
                        <%# Eval("Devre.DevreNo") %>
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <b>Lig</b>
                    </td>
                    <td>
                        :
                    </td>
                    <td>
                        <%# Eval("Lig.LigAdi") %>
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <b>Grup</b>
                    </td>
                    <td>
                        :
                    </td>
                    <td>
                        <%# Eval("MacGrup.MacGrupAdi") %>
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <b>Maç Tarihi</b>
                    </td>
                    <td>
                        :
                    </td>
                    <td>
                        <%# Eval("MacTarihi","{0:dd/MM/yyyy}") %>
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <b>Maç Saati</b>
                    </td>
                    <td>
                        :
                    </td>
                    <td>
                        <%# Eval("MacSaati","{0:hh\\:mm}") %>
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <b>Hafta</b>
                    </td>
                    <td>
                        :
                    </td>
                    <td>
                        <%# Eval("MacHafta") %>
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <b>Maç Kodu</b>
                    </td>
                    <td>
                        :
                    </td>
                    <td>
                        <%# Eval("MacKodu") %>
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <b>Ev Sahibi Takım</b>
                    </td>
                    <td>
                        :
                    </td>
                    <td>
                        <%# Eval("EvSahibiTakim.TakimAdi") %>
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <b>Misafir Takım</b>
                    </td>
                    <td>
                        :
                    </td>
                    <td>
                        <%# Eval("MisafirTakim.TakimAdi") %>
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <b>Saha Tipi</b>
                    </td>
                    <td>
                        :
                    </td>
                    <td>
                        <%# Eval("MacSahaTipi") %>
                    </td>
                </tr>
            </ItemTemplate>
            <EditItemTemplate>
                <tr>
                    <td align="right">
                        <b>İlçe</b>
                    </td>
                    <td>
                        :
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlIlce" runat="server" Width="180px">
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <b>Stad</b>
                    </td>
                    <td>
                        :
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlStat" runat="server" Width="180px">
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <b>Devre</b>
                    </td>
                    <td>
                        :
                    </td>
                    <td>
                        <asp:RadioButtonList ID="rblDevre" runat="server" RepeatDirection="Horizontal" AutoPostBack="false"
                            CellPadding="2" CellSpacing="2" RepeatColumns="2" Width="80px">
                            <asp:ListItem Text="1" Value="1"></asp:ListItem>
                            <asp:ListItem Text="2" Value="2"></asp:ListItem>
                        </asp:RadioButtonList>
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <b>Lig</b>
                    </td>
                    <td>
                        :
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlLig" runat="server" Width="145px">
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <b>Grup</b>
                    </td>
                    <td>
                        :
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlMacGrup" runat="server" Width="145px">
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <b>Maç Tarihi</b>
                    </td>
                    <td>
                        :
                    </td>
                    <td>
                        <asp:TextBox ID="txtMacTarihi" runat="server" Text='<%#Eval("MacTarihi","{0:dd/MM/yyyy}") %>'
                            Width="138px"></asp:TextBox>
                        <asp:ImageButton ID="ImageCalendar2" runat="server" ImageUrl="~/images/calendar.png"
                            CausesValidation="False" Width="16px" Height="16px" />
                        <asp:CalendarExtender ID="CalendarExtender2" runat="server" TargetControlID="txtMacTarihi"
                            Format="dd-MM-yyyy" PopupButtonID="ImageCalendar2">
                        </asp:CalendarExtender>
                        <asp:MaskedEditExtender runat="server" ID="MaskedEditExtender2" TargetControlID="txtMacTarihi"
                            Mask="99/99/9999" MessageValidatorTip="true" OnFocusCssClass="MaskedEditFocus"
                            OnInvalidCssClass="MaskedEditError" MaskType="None" InputDirection="LeftToRight"
                            AcceptNegative="Left" DisplayMoney="Left" ErrorTooltipEnabled="True" ClearMaskOnLostFocus="False" />
                    </td>
                    <td>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtMacTarihi"
                            ErrorMessage="Maç Tarihi boş geçilemez." ForeColor="Red">*</asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <b>Maç Saati</b>
                    </td>
                    <td>
                        :
                    </td>
                    <td>
                        <asp:TextBox ID="txtMacSaati" runat="server" Text='<%#Eval("MacSaati","{0:hh\\:mm}") %>'
                            Width="50px"></asp:TextBox>
                        <asp:MaskedEditExtender runat="server" ID="MaskedEditExtender3" TargetControlID="txtMacSaati"
                            Mask="99:99" MessageValidatorTip="true" OnFocusCssClass="MaskedEditFocus" OnInvalidCssClass="MaskedEditError"
                            MaskType="Time" InputDirection="LeftToRight" AcceptNegative="Left" DisplayMoney="Left"
                            ErrorTooltipEnabled="True" ClearMaskOnLostFocus="False" />
                    </td>
                    <td>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtMacSaati"
                            ErrorMessage="Maç Saati boş geçilemez." ForeColor="Red">*</asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <b>Hafta</b>
                    </td>
                    <td>
                        :
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlHafta" runat="server" Width="50px">
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <b>Maç Kodu</b>
                    </td>
                    <td>
                        :
                    </td>
                    <td>
                        <asp:TextBox ID="txtMacKodu" runat="server" Text='<%#Eval("MacKodu") %>' Width="80px"></asp:TextBox>
                        <asp:MaskedEditExtender runat="server" ID="MaskedEditExtender1" TargetControlID="txtMacKodu"
                            Mask="99-9999" MessageValidatorTip="true" OnFocusCssClass="MaskedEditFocus" OnInvalidCssClass="MaskedEditError"
                            MaskType="None" InputDirection="LeftToRight" AcceptNegative="Left" DisplayMoney="Left"
                            ErrorTooltipEnabled="True" ClearMaskOnLostFocus="False" />
                    </td>
                    <td>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtMacKodu"
                            ErrorMessage="Maç Kodu boş geçilemez." ForeColor="Red">*</asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <b>Ev Sahibi Takım</b>
                    </td>
                    <td>
                        :
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlEvSahibiTakim" runat="server" Width="180px">
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <b>Misafir Takım</b>
                    </td>
                    <td>
                        :
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlMisafirTakim" runat="server" Width="180px">
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <b>Saha Tipi</b>
                    </td>
                    <td>
                        :
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlMacSahaTipi" runat="server" Width="180px">
                        </asp:DropDownList>
                    </td>
                </tr>
            </EditItemTemplate>
            <HeaderStyle Font-Bold="True"></HeaderStyle>
        </asp:TemplateField>
        <asp:CommandField ShowEditButton="True" EditText="Düzenle" CancelText="Vazgeç" UpdateText="Güncelle" />
    </Fields>
</asp:DetailsView>
